<%@ page language="java" pageEncoding="ISO-8859-1"%>
 
<%@page import="com.dts.core.util.CoreList"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.yourcompany.struts.form.MobileOperatorMasterForm"%>
<%@page import="com.yourcompany.struts.form.MobileCardDetailsForm"%>
<%@page import="com.dts.project.dao.MobileCardDetailsDao"%>
<%@page import="com.dts.dae.dao.ProfileDAO"%>
<%@page import="com.dts.dae.model.Profile"%>
<%@page import="com.dts.project.dao.MobileOperatorMasterDao"%>
 
 
<html> 
	<head>
		<title>JSP for MobileCardSalesForm form</title>
	</head>
	<%if(request.getParameter("status")!=null){ %>
<%=request.getParameter("status") %><%} %>
	<body>
		<form action="MobileCardSalesAction.jsp"><table align="center">
			<tr><td>CardId : </td><td><select name="cardId"/>
			<%
			MobileCardDetailsDao dao=new MobileCardDetailsDao();
			CoreList cl=dao.ViewMobileCardDetails();
			Enumeration en=cl.elements();
			while(en.hasMoreElements()) 
			{
			MobileCardDetailsForm form=(MobileCardDetailsForm)en.nextElement(); 
			 %><option value="<%=form.getCardId()%>"><%=form.getCardName()%></option>
			 <%}%></select></td></tr> 
			 <tr><td>UserId : </td><td><select name="UserId">
			<%
			ProfileDAO dao3=new ProfileDAO();
			Profile model3=null;
			CoreList cl3=dao3.getuserdetails();
			Enumeration en3=cl3.elements();
			while(en3.hasMoreElements())
			{
			model3=(Profile)en3.nextElement();
		 
			%>
			<option value="<%=model3.getUserid() %>"><%=model3.getLoginID() %></option>
			 <%} %>
			</select></td></tr>
			<tr><td>OperatorId : </td><td><select name="operationId"/>
			<%MobileOperatorMasterDao dao2=new MobileOperatorMasterDao();
			CoreList cl2=dao2.ViewMobileOperatorMaster();
			Enumeration en2=cl2.elements();
			while(en2.hasMoreElements())
			{
			MobileOperatorMasterForm form2=(MobileOperatorMasterForm)en2.nextElement();
			 %>
			 <option value="<%=form2.getOperatorId() %>"><%=form2.getOperatorName() %> 
			 <%} %></option></td></tr>
			<tr><td>SaleDate : </td><td><input type=text name="saleDate"/> </td></tr>
		 
			<tr><td></td><td><input type=submit name="Register" value="Register"/></td></tr></table>
		</form>
	</body>
</html>

